import java.util.Scanner;

public class Main1394 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n= sc.nextInt();
        int b= sc.nextInt();
        int s= sc.nextInt();
        for (int i=1;i<=(n-s)/b;i++){
            for (int j=(n-b)/s;j>=1;j--){
                if (b*i+s*j==n&&i>=j&&i+j>=5){
                    System.out.println(i+" "+j);
                }
            }
        }
    }
}
